-- GENERATED SPELL FOR [Misha] --


function spell0_10204(pUnit, Event) --@Demoralizing Roar,Self--
pUnit:FullCastSpellOnTarget(20753,pUnit)
pUnit:RegisterEvent('Sorts_10204', 30260, 1)
end

function spell1_10204(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(17156,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10204', 624, 1)
end

function Sorts_10204(pUnit, Event)
local choix_sorts_10204 = math.random(0, 1)
if choix_sorts_10204 == 0 then
pUnit:RegisterEvent('spell0_10204', 1, 1)
end
if choix_sorts_10204 == 1 then
pUnit:RegisterEvent('spell1_10204', 1, 1)
end
end

function mob10204_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10204', math.random(1500, 3000), 1)
end

function mob10204_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10204_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10204_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10204, 1, 'mob10204_Action')
RegisterUnitEvent(10204, 2, 'mob10204_Leave')
RegisterUnitEvent(10204, 3, 'mob10204_Kill')
RegisterUnitEvent(10204, 4, 'mob10204_Die')
